'use strict';
const dbHelper = require("db-helper")
const httpHelper = require("http-helper")
const {
	wxPubConfig
} = require("config")
const WxPubApi = require("wx-public-api");
const wxPubApi = new WxPubApi();
const db = uniCloud.database();
exports.main = async (event, context) => {
	//event为客户端上传的参数
	console.log('创建公众号菜单:', event)
	try {
		await wxPubApi.createMenu("4201", menu);
	} catch (e) {
		console.error("创建公众号菜单遇到错误", e);
	}
};
